<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <body>
    <div class="definicion">
      <div class="aldea">
${DefinicionUtils.buildSimpleHeaderShow('','registroNotas')}
        <g:if test="${flash.message}">
          <div class="message">${flash.message}</div>
        </g:if>
        <g:if test="${listaErrores && listaErrores.size()>0}">
          <div class="errors">
            <ul>
              <g:each var="error" in="${listaErrores}">
                <li>${error}</li>
              </g:each>
            </ul></div>
        </g:if>
        <g:hasErrors bean="${inscripcionInstance}">
          <div class="errors">
            <g:renderErrors bean="${inscripcionInstance}" as="list" />
          </div>
        </g:hasErrors>
      </div>

      <g:form action="save" method="post" autocomplete="off" name="definicion">
        <input type="hidden" name="eOc" value="${eOc}"/>
        <input type="text" id="id" name="id" value="" disabled class="disabled" style="display:none; "/>  
        <table width="300" align="center">
          <tbody>
            <tr class="prop">
              <td width="200" valign="top" class="value ${hasErrors(bean: alumno, field: 'docentes', 'errors')}">
                <input  type="text" class="" name="docente" value="${docentes.cedula}" id="docente" style="width:200px" readonly class="campos" />
              </td>
            </tr>
            <tr class="prop">
              <td width="200" valign="top" >
                <input  type="text" class="" name="datos" value="${docentes.nombres + " " + docentes.apellidos}" id="datos" style="width:200px" readonly class="campos" />
              </td>
            </tr>
            <tr>
              <td>
          <g:select name="materia" id="materia"
                    from="${materiaList}"
                    value="" class="campos" style="width:200px"
                    optionKey="id"  
                    optionValue="nombre"
                    noSelection="${['':'Todas las materias']}"
                    onChange="${remoteFunction(action: 'reder1',
update: [success: 'divRender1',
  failure: 'ohno'],
params:'\'materia=\'+escape(this.value)+\'&docente=\'+document.getElementById(\'docente\').value+\'&seccion=\'+document.getElementById(\'seccion\').value+\'&lapsoAcademico=\'+document.getElementById(\'lapsoAcademico\').value' )}"
                    />
          </td>
          </tr>
          <tr>
            <td>
          <g:select name="seccion" id="seccion"
                    from="${sucre.Seccion.list()}"
                    value="" class="campos" style="width:200px"
                    optionKey="id"
                    noSelection="${['':'Todas las secciones']}"
                    onChange="${remoteFunction(action: 'reder1',
                    update: [success: 'divRender1',
                    failure: 'ohno'],
                    params:'\'seccion=\'+escape(this.value)+\'&docente=\'+document.getElementById(\'docente\').value+\'&materia=\'+document.getElementById(\'materia\').value+\'&lapsoAcademico=\'+document.getElementById(\'lapsoAcademico\').value' )}"
                    />
          </td>
          </tr>
          <tr>
            <td>
              <g:select name="lapsoAcademico" id="lapsoAcademico"
                    from="${sucre.LapsoAcademico.list()}"
                    value="" class="campos" style="width:200px"
                    optionKey="nombre"
                    optionValue="nombre"
                    noSelection="${['':'Todos los lapsos Academicos']}"
                    onChange="${remoteFunction(action: 'reder1',
                    update: [success: 'divRender1',
                    failure: 'ohno'],
                    params:'\'lapsoAcademico=\'+escape(this.value)+\'&docente=\'+document.getElementById(\'docente\').value+\'&materia=\'+document.getElementById(\'materia\').value+\'&seccion=\'+document.getElementById(\'seccion\').value' )}"
                    />
             </td>
          <tr>
          <tr>
            <td align="center" height="30px">
          
              </td>
            </tr>
          <tr>
            <td align="center">
              <g:remoteLink action="reder1" update="divRender1" params="[docente:docentes.cedula]">Cargar materia</g:remoteLink>
              </td>
            </tr>
          </tbody>
        </table>
        <div id="divRender1" ></div>
      </g:form>
    </div>
</body>
</html>